﻿using System.ComponentModel.DataAnnotations;

namespace web01.Models
{
    public class Person
    {
        [Required]
        public int Id { get; set; }
        [Required(ErrorMessage = "请输出名称")]
        [MaxLength(10)]
        public string  Name { get; set; }

    }
}